package com.lzx.adx.report.enums;

public enum MeituEventTypeEnums {
    //转换类型【2新登，3，收购，4，次日留存，6，拉活UV,7拉活存单，8当日首购】

    ACTIVATE_APP("ACTIVATE_APP","0","激活"),
    RETENTION("RETENTION","3","次留"),
    LAUNCH("LAUNCH","3","应用唤起"),
    REGISTER("REGISTER","1","注册")



    ;


    private String xhsCode;

    private String meituCode;

    private String msg;


    MeituEventTypeEnums(String xhsCode, String meituCode, String msg) {
        this.xhsCode = xhsCode;
        this.meituCode = meituCode;
        this.msg = msg;
    }

    public String getXhsCode() {
        return xhsCode;
    }

    public String getMeituCode() {
        return meituCode;
    }

    public String getMsg() {
        return msg;
    }

    public static String getXhsCodeByMtu(String xhsCode){
        for (MeituEventTypeEnums value : MeituEventTypeEnums.values()) {
            if(value.getXhsCode().equals(xhsCode)){
                return value.getMeituCode();
            }
        }
        return  null;
    }


}
